<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        function Func() {

        }
        console.log(Func.prototype ,typeof Func.prototype);
        // 给原型对象添加属性，一般是方法。 实例对象可以访问
        Func.prototype.test=function(name){
            console.log(name);
        }
        Func.prototype.test("小明")

        console.log(Date.prototype.constructor===Date); //true
        console.log(Func.prototype.constructor===Func); //true
    </script>
</body>

</html>